var COMPASS_DIRECTIONS;

/**
 * @constructor
 * @returns {Compass}
 */
function Compass() {
	COMPASS_DIRECTIONS = [DIRECTION.N, DIRECTION.E, DIRECTION.S, DIRECTION.W];
};

/**
 * @public
 * @param {DIRECTION} currentDirection
 * @param {COMMAND} command
 * @returns {DIRECTION}
 */
Compass.prototype.rotateCW = function(currentDirection, command) {
	rotationDegrees = command.rotationDegreesDeltaCW + currentDirection.degreesFromNorthCW;	
	return COMPASS_DIRECTIONS[(4+(rotationDegrees/90))%4];
};